package cn.gson.boot.model.dao;

import cn.gson.boot.model.pojos.Dingdan;
import cn.gson.boot.model.pojos.Huikuan;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;

public interface HuiKuanDao extends CrudRepository<Huikuan,Integer> {
    //修改回款是否开发票的状态为：是
    @Transactional
    @Modifying(clearAutomatically = true)
    @Query(nativeQuery = true,value = "update huikuan set hk_fapiao='是' where hk_id=?1")
    public void updateHuiKuanFaPiaoIsYes(Integer hkId);

}
